<h2>Info</h2>
<hr>
<?php echo $this->projectdetailsform ?>
<hr>
<h2>Users</h2>
<hr>
<h3>Connected Users</h3>
<table>
    <?php foreach($this->users as $user):?>
    <tr><td><?php echo $user->Givenname ." ".$user->Familyname?></td><td><?php echo $user->Email ?></td><td><?php echo $this->ajaxLink("Delete",
                    $this->url(array(
        'controller' => 'project',
        'action'     => 'deleteuserfromproject',
        'userid'    => $user->Id,
        'projectid' => $this->projectid,
        
    ),
    'default',
    true),
                    array('update' => "#answer$user->Id", 'class'=>'button'));?></td><td><span id="answer<?php echo $user->Id ?>"></span></td><tr>
    <?php endforeach;?>
</table>
<h3>Add user</h3>
<?php echo $this->addusertoprojectform ; ?>